package wxy.studentmanage.service.impl;

import wxy.studentmanage.bean.Clazz;
import wxy.studentmanage.mapper.ClazzMapper;
import wxy.studentmanage.service.ClazzService;

import java.util.List;

public class ClazzServiceImpl implements ClazzService{
    private ClazzMapper clazzMapper;
    public void setClazzMapper(ClazzMapper clazzMapper) {
        this.clazzMapper = clazzMapper;
    }

    @Override
    public List<Clazz> queryAllClazz() {
        return clazzMapper.queryAllClazz();
    }

    @Override
    public int addClazz(Clazz clazz) {
        return clazzMapper.addClazz(clazz);
    }

    @Override
    public int deleteClazzById(int wxy_id) {
        return clazzMapper.deleteClazzById(wxy_id);
    }

    @Override
    public Clazz queryClazzById(int wxy_id) {
        return clazzMapper.queryClazzById(wxy_id);
    }

    @Override
    public int updateClazz(Clazz clazz) {
        return clazzMapper.updateClazz(clazz);
    }
}
